<div class="grid_9">
    <div class="inner-border">
		<h6>Profile</b></h6>
		<div class="profile-view">
			<?php foreach($db_entries as $db_entry): ?>			
				<div class="profile-block">
					<table>
						<thead>
							<caption><h6>User Profile</h6></caption>
							<th class ="profile_name"></th>
						</thead>
						<tbody class="">
							<tr><td>Firstname :			</td><td><?=$db_entry->firstname;?></td></tr>
							<tr><td>Middlename :		</td><td><?=$db_entry->middlename;?></td></tr>
							<tr><td>Lastname :			</td><td><?=$db_entry->lastname;?></td></tr>
							<tr><td>Gender :			</td><td><?=$db_entry->gender;?></td></tr>
							<tr><td>Civil Status :		</td><td><?=$db_entry->civilstatus;?></td></tr>
							<tr><td>Age :				</td><td><?=$db_entry->age;?></td></tr>
							<tr><td>Birth date :		</td><td><?=$db_entry->dob;?></td></tr>
							<tr><td>Birth place :		</td><td><?=$db_entry->pob;?></td></tr>
							<tr><td>Disability :		</td><td><?=$db_entry->disability;?></td></tr>
							<tr><td>Nationality :		</td><td><?=$db_entry->nationality;?></td></tr>
							<tr><td>Religion :			</td><td><?=$db_entry->religion;?></td></tr>
							<tr><td>Contact Number :	</td><td><?=$db_entry->contactnumber;?></td></tr>
							<tr><td>Email Address :		</td><td><?=$db_entry->email;?></td></tr>
							<tr><td>Present Address :	</td><td><?=$db_entry->presentaddress;?></td></tr>
						</tbody>
					</table>
				</div>
				
				<div class="profile-block">
					<table>
						<thead>
							<caption><h6>Educ. Background</h6></caption>
							<th class ="profile_name"></th>
						</thead>
						<tbody class="">
									<tr><td><p class="title">Elementary</p></td></tr>
									<tr><td>School Name :	</td><td><?=$db_entry->eschoolname;?></td></tr>
									<tr><td>Address :		</td><td><?=$db_entry->eschooladdress;?></td></tr>
									<tr><td>Year Graduated :</td><td><?=$db_entry->eyeargraduate;?></td></tr>
									
									<tr><td><p class="title">Secondary</p></td></tr>
									<tr><td>School Name :	</td><td><?=$db_entry->sschoolname;?></td></tr>
									<tr><td>Address :		</td><td><?=$db_entry->sschooladdress;?></td></tr>
									<tr><td>Year Graduated :</td><td><?=$db_entry->syeargraduate;?></td></tr>
									
									<tr><td><p class="title">Vocational</p></td></tr>
									<tr><td>School Name :	</td><td><?=$db_entry->vschoolname;?></td></tr>
									<tr><td>Address :		</td><td><?=$db_entry->vschooladdress;?></td></tr>
									<tr><td>Year Graduated :</td><td><?=$db_entry->vyeargraduate;?></td></tr>
									
									<tr><td><p class="title">Tertiary</p></td></tr>
									<tr><td>School Name :	</td><td><?=$db_entry->tschoolname;?></td></tr>
									<tr><td>Address :		</td><td><?=$db_entry->tschooladdress;?></td></tr>
									<tr><td>Year Graduated :</td><td><?=$db_entry->tyeargraduate;?></td></tr>
									
									<tr><td><p class="title">Others</p></td></tr>
									<tr><td>School Name :	</td><td><?=$db_entry->oschoolname;?></td></tr>
									<tr><td>Address :		</td><td><?=$db_entry->oschooladdress;?></td></tr>
									<tr><td>Year Graduated :</td><td><?=$db_entry->oyeargraduate;?></td></tr>
						</tbody>
					</table>
				</div>
				
				<div class="profile-block">
					<table>
						<thead>
							<caption><h6>Family Background</h6></caption>
							<th class ="profile_name"></th>
						</thead>
						<tbody class="">
							<tr><td>Father's name :			</td><td><?=$db_entry->fathername;?></td></tr>
							<tr><td>Father's Occupation :	</td><td><?=$db_entry->fatheroccupation;?></td></tr>
							<tr><td>Father's COntact # :	</td><td><?=$db_entry->fathercontact;?></td></tr>
							<tr><td>Mother's name :			</td><td><?=$db_entry->mothername;?></td></tr>
							<tr><td>Mother's Occupation :	</td><td><?=$db_entry->motheroccupation;?></td></tr>
							<tr><td>Mother's COntact # :	</td><td><?=$db_entry->mothercontact;?></td></tr>
							<tr><td>Parent's Address :		</td><td><?=$db_entry->parentaddress;?></td></tr>
						</tbody>
					</table>
				</div>
				
				<div class="profile-block">
					<table>
						<thead>
							<caption><h6>Guardians Profile</h6></caption>
							<th class ="profile_name"></th>
						</thead>
						<tbody class="">
							<tr><td>Guardian's Name :		</td><td><?=$db_entry->guardianname;?></td></tr>
							<tr><td>Guardian's Address :	</td><td><?=$db_entry->guardianaddress;?></td></tr>
							<tr><td>Guardian's Contact # :	</td><td><?=$db_entry->guardiancontact;?></td></tr>
						</tbody>
					</table>
				</div>
		</div>
		<div id="input-block">
			<a href="<?php echo site_url('student/edit_student_profile/'.$db_entry->user_id) ?>" class="btn">EDIT INFORMATION</a>	
		</div>
<?php endforeach?>
    </div>
</div>
